

public class LoginController {
	VerifyUser verifyUser;
	public LoginController(VerifyUser vu){
		verifyUser = vu;
	}

	public int login(String name, String password){
		
		//verify user by checking database. Then change system's current user.
		return verifyUser.VerifyUser(name, password);
	}
	
	public boolean logoff(){
		OverallSystem.logoff();
		//address current user in system.
		return true;
	}
	
}
